<%= render 'menu/caidauadmin'%>


<%= form_tag :action => 'createbook' %>
<fieldset align="left">
			<legend><h2>Add new book</h2></legend>
<table>
	<tr>
		<td>Name:</td>
		<td><%= text_field 'newbook', 'Name'%></td>
	</tr>
	<tr>
		<td>Author:</td>
		<td><%= text_field'newbook', 'Author'%></td>
	</tr>
	<tr>
		<td>Genre: </td>
		<td><%= text_field 'newbook', 'Genre'%></td>
	</tr>
	<tr>
		<td>Publish Year:</td>
		<td><%= text_field 'newbook','Publish_year'%></td>
	</tr>
	<tr>
		<td>Quantity: </td>
		<td><%= text_field 'newbook','Quantity'%></td>
	</tr>
	<tr>
		<td>Description:</td>
		<td><%= text_area 'newbook','Description' %> </td>
	</tr>
	<tr>
		<td><label for="upload_file">Select File</label> : </td>
		<td><%= file_field 'upload', 'datafile' %></p></td>
	</tr>	
	
</table>
<%= submit_tag "Submit" %>

</fieldset>
<%= $end_form_tag %>

